package com.hts.spring05.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Data
@Component
public class MyDataSource {
    @Value("${MyDataSource.url}")
    private String url;
    @Value("${MyDataSource.username}")
    private String  username;
    @Value("${MyDataSource.password}")
    private String password;
}
